package com.bto.solar.work.service.biz_stage_handler;

/**
 * @author 王小波
 * @description:
 * @date 2023/8/2 9:46
 */

public class BaseStageHandler {
//
//
//    public JSONArray baseGetOrderTaskFormsInfo(Orders order, OrderOwner orderOwner, Tasks task, TaskState taskState, Approval approval){
//        JSONArray btnJsonArray = new JSONArray();
//        BaseReq baseReq = new BaseReq().setOrderId(order.getId().intValue()).setStatusId(order.getStatusId()).setTaskId(task.getId());
//
//
//        if (NullUtils.isNull(approval) && taskState.getState().equals(81)) {
//            JSONObject editBtn = HandlerUtils.generateFormButtonInfo(baseReq, "编辑", "edit", "jump", null);
//            JSONObject yuShenBtn = HandlerUtils.generateFormButtonInfo(baseReq, "提交预审", "shenpi", "layer", "shenpi");
//
//            btnJsonArray.add(editBtn);
//            btnJsonArray.add(yuShenBtn);
//        } else if (NullUtils.isNull(approval) && taskState.getState().equals(10)) {
//            JSONObject editBtn = HandlerUtils.generateFormButtonInfo(baseReq, "编辑", "edit", "jump", null);
//            btnJsonArray.add(editBtn);
//
//        } else if (Arrays.asList(1, 11, 21).contains(taskState.getState())) {
//            JSONObject reEditBtn = HandlerUtils.generateFormButtonInfo(baseReq, "重新填写", task.getHasImage() ? "shenpi" : "edit", "jump", null);
//            btnJsonArray.add(reEditBtn);
//        }
//
//        return btnJsonArray;
//    }
//
//    /**
//     * 翻转订单任务状态
//     */
//    public void turnOrderTaskState(Integer orderId, Integer orderStatusId, Integer taskId, Integer targetState) {
//
//    }

}
